@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('title', config('index_title'))
@section('content')
<div class="clear"></div>


        <div class="fullSlide">

            <div class="bd">
                <!--<ul th:style="'position: relative; width: 1902px; height: 662px;'">-->
                    <!--<li style="background: url(/front/Content/images/timg1.jpg)"></li>-->
                    <!--<li th:style="'background: url(' + @{/front/Content/images/timg2.jpg} + ')'"></li>-->
                    <!--<li th:style="'background: url(' + @{/front/Content/images/timg1.jpg} + ')'"></li>-->
                    <!--<li th:style="'background: url(' + @{/front/Content/images/timg2.jpg} + ')'"></li>-->
                <!--</ul>-->
                <div id="empty-figure-0">

                    <ul style="position: relative; width: 1902px; height: 662px;">
                     @foreach(\DB::table('links')->where('type', 3)->orderBy('listorder', 'asc')->orderBy('id', 'desc')->get() as $row)
                        <li style="background: url(upload/{{$row->thumb}})"></li>
                     @endforeach 

                    </ul>
                </div>
                

            </div>

            <div class="hd">
                <ul></ul>
            </div>
            <span class="prev" style="opacity: 0.5; display: none;"></span>
            <span class="next" style="opacity: 0.5; display: none;"></span>
        </div>

        <script type="text/javascript">

            /* 控制左右按钮显示 */
            jQuery(".fullSlide").hover(function () {
                jQuery(this).find(".prev,.next").stop(true, true).fadeTo("show", 0.5)
            }, function () {
                jQuery(this).find(".prev,.next").fadeOut()
            });

            /* 调用SuperSlide */
            jQuery(".fullSlide").slide({
                titCell: ".hd ul", mainCell: ".bd ul", effect: "fold", autoPlay: true, autoPage: true, trigger: "click",
                startFun: function (i) {
                    var curLi = jQuery(".fullSlide .bd li").eq(i);
                    /* 当前大图的li */
                    if (!!curLi.attr("_src")) {
                        curLi.css("background-image", curLi.attr("_src")).removeAttr("_src")
                        /* 将_src地址赋予li背景，然后删除_src */
                    }
                }
            });
        </script>
        <div class="zyfw">
            <div class="zyfw_tit">
                <h2>专业化服务</h2>
                
                <p>名片宝为您提供纺织服装行业精准高效的信息数据服务，同时也是一个“人人为我，我为人人”的共享服务平台，<br />通过全员参与的奖励激励方式，致力于打破行业数据孤岛，让信息高效流通，个人和企业共享收益。</p>
            </div>
            <div class="zyfw_nr">
                <ul>

                    

                    <div id="full-figure-1">
@Articles(post_type=47&limit=4)
					@foreach($list as $row)
					
                        <div>
                            <li>
                                <a class="topage" href="{{url('newsDetail/'.$row->id)}}">
                                    <img src="upload/{{$row->post_thumb}}" />
                                </a>
                                <h4>{{$row->post_title}}</h4>
                            </li>
                        </div>
@endforeach
                            
                            
                        </div>

                    </div>

                   
                </ul>
            </div>

        </div>
        <div class="zyfw">
            <div class="zyfw_tit">
                <h2>行业细分</h2>
                <p>纺织服装行业数据信息一站式提供方案，全方位覆盖整个产业链</p>
            </div>
            <div class="cyxf ">
                <ul>
                    <div id="empty-figure-2">
                     @if(isset($menu[12]) && !empty($menu[12]))
                        	@foreach($menu[12]['child'] as $k=>$row)
                        
                        <li>
                            <a href="/cart?catid={{$row['id']}}">
                                <div class="cyxf_bj"><img class="img_fd" src="upload/{{$row['thumb']}}" /></div>
                                <div class="txt">
                                    <p>{{$row['description']}}</p>
                                </div>
                            </a>
                           <div class="txt">
                               <p>{{$row['description']}}</p>
                           </div>
                            <p>{{$row['name']}}</p>
                        </li>
                        @endforeach
                            
                        @endif 
                    </div>


                    

                </ul>
            </div>
        </div>
        <div class="zyfw_tit">
            <h2>企业展示</h2>
            <p>行业知名企业展示</p>
        </div>
        <div class="zyfw_down">
<!--            <img class="zyfw_img" src="/front/Content/images/drop-down.png" alt="">-->
            <div class="bj1" style="display: block;">
                <div class="cjqy">
                    <ul>
                        <div id="empty-figure-3">
                        @foreach(\DB::table('links')->where('type', 2)->get() as $row)
                            <li><a href="javascript:;"><img src="upload/{{$row->thumb}}" /></a></li>
                         
                        @endforeach   
                        </div>

                        


                    </ul>
                </div>
            </div>
        </div>

        <div>
@endsection
@section('footer')
     @include('common.footer')
@stop